package com.example.administrator.gplineview;

import android.app.Application;
import android.content.Context;

import com.fm.openinstall.OpenInstall;
import com.squareup.leakcanary.LeakCanary;

/**
 * Created by Administrator
 * Created on 2017/4/17
 */

public class MyApplication extends Application {

    public static int mScreenWidth;
    public static int mScreenHeight;
    private static Context mContext;

    @Override
    public void onCreate() {
        super.onCreate();
        LeakCanary.install(this);
        mScreenWidth = getResources().getDisplayMetrics().widthPixels;
        mScreenHeight = getResources().getDisplayMetrics().heightPixels;
        OpenInstall.init(this);
        //打开调试，便于看到Log
        OpenInstall.setDebug(true);
        mContext = this;
    }

    public static Context getContext(){
        return mContext;
    }
}
